/**
 * @author LKQ
 * @date 2022/2/24 15:36
 * @description
 */
public class Solution {
    public static void main(String[] args) {

    }
    public int xorOperation(int n, int start) {
        int res = 0;
        for(int i = 0; i < n; i++) {
            res ^= start + 2 * i;
        }
        return res;
    }
}
